package com.cdtu.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cdtu.entity.RUserTask;
import com.cdtu.service.RUserTaskService;
import com.cdtu.mapper.RUserTaskMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Sakura
* @description 针对表【r_user_task】的数据库操作Service实现
* @createDate 2023-01-14 13:21:23
*/
@Service
public class RUserTaskServiceImpl extends ServiceImpl<RUserTaskMapper, RUserTask>
    implements RUserTaskService{

    @Autowired
    private RUserTaskMapper rUserTaskMapper;

    @Override
    public List<Long> findByUserId(long user_id) {
        return rUserTaskMapper.findByUserId(user_id);
    }

    @Override
    public boolean removeByUid(long uid) {
        return rUserTaskMapper.removeByUid(uid);
    }
}




